package org.hertsig.magiccardmarket.entities;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import lombok.AllArgsConstructor;
import lombok.Delegate;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

import org.hertsig.magiccardmarket.entities.Games.Game;

@Getter @ToString
@AllArgsConstructor @NoArgsConstructor
@XmlRootElement(name="response")
public class WantsLists implements Iterable<WantsLists.WantsList> {
	@Delegate(types=Iterable.class) @XmlElement private List<WantsList> wantsList;
	
	@Getter @ToString
	@AllArgsConstructor @NoArgsConstructor
	public static class WantsList {
		@XmlElement private String idWantsList;
		@XmlElement private Game game;
		@XmlElement private String name;
		@XmlElement private Integer itemCount;
	}
}
